package cn.wgx.common.entity.mind;

import cn.wgx.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("mind_divide")
public class MindDivide extends MindBaseEntity implements Serializable {

    /**
     * 分界ID
     */
    @TableId(type = IdType.AUTO)
    private Integer div_id;

    /**
     * 项目ID
     */
    @NotNull
    private Integer pro_id;

    /**
     * 标题
     */
    @NotBlank
    private String title;

    /**
     * 类型
     */
    @NotNull
    private Integer type;

    /**
     * 位置信息(x轴)
     */
    private BigDecimal xAxis;


    private Double x;
    private Double y;
}
